﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LineDebug.aspx.cs" Inherits="Workflow.Project.LineDebug" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }

        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table class="table table-bordered table-hover definewidth m10">
                <tr>
                    <td class="tableleft">样品订单流水号</td>
                    <td>
                        <asp:TextBox ID="txtSerialNum" runat="server" ReadOnly="true"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="tableleft">订单类型</td>
                    <td>
                        <asp:DropDownList ID="ddlOrderType" runat="server" Enabled="false">
                            <asp:ListItem Value="0">产线调试</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td class="tableleft">产线号</td>
                    <td>
                        <asp:TextBox ID="txtLineNum" runat="server" Enabled="false"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="tableleft">样品需求登记号</td>
                    <td>
                        <asp:TextBox ID="txtOrderStartSerialNum" runat="server" Enabled="false"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="tableleft">Sap资产号</td>
                    <td>
                        <asp:TextBox ID="txtSapAsset" runat="server" Enabled="false"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="tableleft">Sap凭证号</td>
                    <td>
                        <asp:TextBox ID="txtSapBill" runat="server" Enabled="false"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="tableleft">数据同步</td>
                    <td>
                        <asp:TextBox ID="txtData" runat="server" Enabled="false"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="tableleft"></td>
                    <td>
                        <asp:Button ID="Create" CssClass="btn btn-primary" runat="server" Text="确定" OnClientClick="return Validate()" Visible="false" OnClick="Create_Click" />
                        <asp:Button ID="Update1" CssClass="btn btn-primary" runat="server" Text="确定"   OnClientClick="return Validate()" Visible="false" OnClick="Update1_Click"/>
                        <asp:Button ID="Update2" CssClass="btn btn-primary" runat="server" Text="确定"  Visible="false" OnClick="Update2_Click"/>
                        <asp:Button ID="Update3" CssClass="btn btn-primary" runat="server" Text="确定"  Visible="false" OnClick="Update3_Click"/>
                    </td>
                </tr>
            </table>
               
        </div>
    </form>
    <script>
        $(document).ready(function () {
            
        });
        function Validate() {
            var reg = /^1\d{7}$/;
            if (!reg.test($("#txtOrderStartSerialNum").val())) {
                alert("样品需求登记号不正确");
                return false;
            }
        }

    </script>
</body>
</html>
